import request from '../../../utils/request';

const postReq = {
  // 栏目查询
  async getNavigationStateNavtype(params) {
    const {data} = await request.get('/api/Navigation/getNavigationStateNavtype', {params})
    return data
  },

  // 记录栏目访问量
  async postNavigationUpdateFlow(params) {
    const {data} = await request.post('/api/Navigation/postNavigationUpdateFlow', params)
    return data
  },

  // 页脚ICP
  async getZylIcpAll() {
    const {data} = await request.get('/api/Icp/getZylIcpAll')
    return data
  },

  // 首页顶部大图
  async getTravelsImgtype (params) {
    const {data} = await request.get('/api/Travels/getTravelsImgtype', {params})
    return data
  },

  // 首页轮播图
  async getRotationStateImgtype(params) {
    const {data} = await request.get('/api/ZylRotation/getRotationStateImgtype', {params})
    return data
  },

  // 开发笔记
  async getNotearticleState(params) {
    const {data} = await request.get('/api/Notearticle/getNotearticleState', {params})
    return data
  },

  // 项目案例
  async getZylworksState(params) {
    const {data} = await request.get('/api/ZylWorks/getZylworksState', {params})
    return data
  },

  // 友情链接
  async getZylLinkState(params) {
    const {data} = await request.get('/api/ZylLink/getZylLinkState', {params})
    return data
  },


  // 通知公告
  async getZylNoticeAll() {
    const {data} = await request.get('/api/Notice/getZylNoticeAll')
    return data
  },

  // 常用链接
  async getZylWebsiteState(params) {
    const {data} = await request.get('/api/Website/getZylWebsiteState', {params})
    return data
  },

  // 统计笔记总数
  async getNotearticleTotal(params) {
    const {data} = await request.get('/api/Notearticle/getNotearticleTotal', {params})
    return data
  },

  // 统计作品总数
  async getZylworksTotal() {
    const {data} = await request.get('/api/ZylWorks/getZylworksTotal')
    return data
  },

  // 统计素材总数
  async getZylWebsiteTotal() {
    const {data} = await request.get('/api/Website/getZylWebsiteTotal')
    return data
  },

  // 统计友链总数
  async getZylLinkTotal() {
    const {data} = await request.get('/api/ZylLink/getZylLinkTotal')
    return data
  },

  // 统计留言总数
  async getLeavingTotal(params) {
    const {data} = await request.get('/api/Leaving/getLeavingTotal', {params})
    return data
  },

  // 统计游记总数
  async getTravelsIdTota() {
    const {data} = await request.get('/api/Travels/getTravelsIdTota')
    return data
  },

  // 查询联系方式
  async getZylphoneAll() {
    const {data} = await request.get('/api/zylPhone/getZylphoneAll')
    return data
  },
}

export default postReq
